<template>
  <div id="app">
    <router-view/>

    <div id="nav">
      <Header></Header>
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
//引入Footer Header的组件
import Header from "./components/Header.vue"
import Footer from "./components/Footer.vue";
export default{
  name:"App",
  components:{
    Header,
    Footer,
  },
};
</script>

<style>
*{
  padding: 0;
  margin: 0;
}
a{
  text-decoration: none;
}
ul,li{
  list-style: none;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}
#nav a{
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #f03d37;
}

</style>
